package com.app.TCES.service;

import java.util.List;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.app.TCES.domain.Test;
import com.app.TCES.mapper.A_e1Mapper;

@Service
public class A_e1Service {

	Logger log = LogManager.getLogger(A_e1Service.class);

	@Autowired
	A_e1Mapper a_e1Mapper;

	// 获取教师同行评价内容数据
	public List<Test> selEvaluations1() {

		List<Test> list = a_e1Mapper.selectEvaluations1();
		return list;

	}

	// 获取学生评价内容数据
	public List<Test> selEvaluations2() {

		List<Test> list = a_e1Mapper.selectEvaluations2();
		return list;

	}
	
	//更新数据
	public void UpdateEva(int testId,String testContent) {
		
		a_e1Mapper.UpdataEva(testId, testContent);
	
	}

}
